home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / netinfo.719 < prev    next >
Text File  |  1992-02-06  |  3KB  |  98 lines

  1. {\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f3\ftech Symbol;\f1\fmodern Courier;\f2\fswiss Helvetica;}
  2. \paperw11040
  3. \paperh5900
  4. \margl120
  5. \margr1000
  6. {\colortbl\red0\green0\blue0;}
  7. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ul0\fs28 NetInfo domain loop\
  8. \
  9. Q:  It appears I have a domain loop in my NetInfo database structure.  At least, when I do a 
  10. \b Domain 
  11. \f3\b0 fi
  12. \f0\b  Open
  13. \b0 , it sure looks like there a loop.  What cause this and, more important, how can I fix this?\
  14. \
  15. A: One cause of this is a directory in 
  16. \b /machines
  17. \b0  which has a 
  18. \b serves
  19. \b0  property with an empty value.  Note that this is 
  20. \i different
  21. \i0  from a 
  22. \b serves
  23. \b0  property with no value.  A 
  24. \b serves
  25. \b0  property should not have a null value, nor a value consisting entirely of spaces.\
  26. \
  27. To determine if you have such a 
  28. \b serves
  29. \b0  property, first check to see if it seems you have a domain loop when you try to open a domain in 
  30. \b NetInfoManager
  31. \b0 , for exmaple.  The typical symptom for this problem is to have a blank directory name at the top of a domain browser column; clicking on this blank domain name will show you another copy of the same level in the domain hierarchy.\
  32. \
  33. You can use the following bit of “code” to verify that this is your problem (substitute, typically, the root domain, 
  34. \b /
  35. \b0 , for 
  36. \i domain
  37. \i0 ):\
  38. \
  39.  
  40. \pard\tx1440\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f1\fs24\li920 %
  41. \b  niutil -list 
  42. \b0\i domain
  43. \b\i0  /machines | \\\
  44.     awk '\{print "@"$0"@"\}'
  45. \b0 \
  46.  
  47. \pard\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\li920 @2    
  48. \i hostname
  49. \i0 /local ./network @\
  50. @22     @\
  51. @23    @
  52. \b \
  53.  
  54. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\fs28 \
  55. This lists the directories in 
  56. \b /machines
  57. \b0  (in the 
  58. \i domain
  59. \i0  domain), showing each directory's 
  60. \b serves
  61. \b0  property's value.  By piping the output of the 
  62. \b niutil
  63. \b0  command to 
  64. \b awk
  65. \b0  we can surround each line with markers to help us see trailing blanks, which would otherwise be invisible.\
  66. \
  67. The first line, for directory number 2, shows that this machine (whatever it is) serves two domains, 
  68. \b\i hostname
  69. \i0 /local
  70. \b0  and 
  71. \b ./network
  72. \b0 .  The machine in directory 23 either has no 
  73. \b serves
  74. \b0  property, or has a 
  75. \b serves
  76. \b0  property with no value.\
  77. \
  78. But, the machine in directory 22 has an extra space preceding the 
  79. \b @
  80. \b0  which is used as the trailer in the 
  81. \b awk
  82. \b0  script.  This shows that the 
  83. \b serves
  84. \b0  property has a value which is either null (empty) or a space (or perhaps some non-printing character).\
  85. \
  86.  
  87. \fc0 To fix this: either remove the offending 
  88. \b serves
  89. \b0  property, or remove the offending 
  90. \b serves
  91. \b0  property's value.\
  92. \
  93. QA719\
  94. \
  95. Valid for 2.0\
  96. \
  97.  
  98.